function my$(ele) {
    return document.getElementById(ele)
}

// 注册事件兼容写法
function addEvent(ele, type, fn) {
    if (ele.addeventListerent) {
        ele.addeventListerent(type, fn)
    } else if (ele.attachEvent) {
        ele.attachEvent('on' + type, fn)
    } else {
        ele['on' + type] = fn
    }
}